import Vue from 'vue'
import {
  NavBar,
  Tabbar, TabbarItem,
  Swipe, SwipeItem,
  Grid, GridItem,
  Toast,
  Card,
  Button,
  Tab, Tabs,
  ImagePreview
} from 'vant'

Vue
  .use(NavBar)
  .use(Tabbar).use(TabbarItem)
  .use(Swipe).use(SwipeItem)
  .use(Grid).use(GridItem)
  .use(Card)
  .use(Button)
  .use(Tab).use(Tabs)

Vue.prototype.$Toast = Toast
Vue.prototype.$ImagePreview = ImagePreview
